import request from '@/utils/request'

// 查询仰口生产基地费用统计列表
export function listAnalysis_cost(query) {
  return request({
    url: '/productionProcess/analysis_cost/list',
    method: 'get',
    params: query
  })
}

// 查询生产报表数据
export function queryList(data) {
  return request({
    url: '/productionProcess/analysis_cost/queryList',
    method: 'post',
    data: data
  })
}

// 查询仰口生产基地费用统计详细
export function getAnalysis_cost(id) {
  return request({
    url: '/productionProcess/analysis_cost/' + id,
    method: 'get'
  })
}

// 查询仰口生产基地费用统计详细
export function getAnalysis_costMonth(id,query) {
  return request({
    url: '/productionProcess/analysis_cost/queryMonth/' + id,
    method: 'get',
    params: query
  })
}

// 新增仰口生产基地费用统计
export function addAnalysis_cost(data) {
  return request({
    url: '/productionProcess/analysis_cost',
    method: 'post',
    data: data
  })
}

// 修改仰口生产基地费用统计
export function updateAnalysis_cost(data) {
  return request({
    url: '/productionProcess/analysis_cost',
    method: 'put',
    data: data
  })
}
export function checkAnalysis_cost(data) {
  return request({
    url: '/productionProcess/analysis_cost/check',
    method: 'put',
    data: data
  })
}
// 删除仰口生产基地费用统计
export function delAnalysis_cost(id) {
  return request({
    url: '/productionProcess/analysis_cost/' + id,
    method: 'delete'
  })
}
